package top.healthylife.gateway.platform.jg.api.api;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.jg.api.util.JGHttpUtil;
import top.healthylife.gateway.platform.jg.dto.jmonitormars.req.JGReqMonitorDto;
import top.healthylife.gateway.platform.jg.dto.jmonitormars.res.JGResMonitorDto;

/**
 * 极光J-Monitor Mars
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "J-MonitorMars" , info = "J-MonitorMars")
public class JGJmonitormarsApi implements ParentFace<JGReqMonitorDto, JGResMonitorDto> {

    private static final String API_NAME = "/v1/ctm/jmm/factors";

    @Override
    public JGResMonitorDto execute(JGReqMonitorDto reqDto){
        return JGHttpUtil.httpGetRequest(reqDto,API_NAME, JGResMonitorDto.class);
    }
}
